package com.lingyu.jsjx.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 推荐对象 jsjx_document_recommend
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
@TableName("jsjx_document_recommend")
public class DocumentRecommend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "recommend_id", type = IdType.AUTO)
    private Long recommendId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 文档id */
    @Excel(name = "文档id")
    private Long wordId;

    @TableField(exist = false)
    private UserDocument userDocument;

    /**
     * 文件信息
     */
    @TableField(exist = false)
    private List<FileInfo> fileInfo;

    public UserDocument getUserDocument() {
        return userDocument;
    }

    public void setUserDocument(UserDocument userDocument) {
        this.userDocument = userDocument;
    }

    public void setRecommendId(Long recommendId) 
    {
        this.recommendId = recommendId;
    }

    public Long getRecommendId() 
    {
        return recommendId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setWordId(Long wordId) 
    {
        this.wordId = wordId;
    }

    public Long getWordId() 
    {
        return wordId;
    }

    public List<FileInfo> getFileInfo() {
        return fileInfo;
    }

    public void setFileInfo(List<FileInfo> fileInfo) {
        this.fileInfo = fileInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recommendId", getRecommendId())
            .append("userId", getUserId())
            .append("wordId", getWordId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
